package com.direct.domian;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 订单类
 * @author Administrator
 * 
 */
public class Bill {

	private String id;
	// 流水号
	private String serial;
	// 下单账户
	private Account account;
	// 接待员工
	private Employee staff;
	// 下单类型
	private Integer type;
	// 下单时间
	private Date createTime;
	// 起点省份
	private Provice startProvice;
	// 终点省份
	private Provice endProvice;
	// 起点城市
	private City startCity;
	// 终点城市
	private City endCity;
	// 起点乡镇
	private Town stratTown;
	// 终点乡镇
	private Town endTown;
	// 起点具体地址
	private String startAddress;
	// 终点具体地址
	private String endAddress;
	// 发货人姓名
	private String senderName;
	// 发货人电话
	private String senderPhone;
	// 起点邮编
	private String startPost;
	// 收货人姓名
	private String receiverName;
	// 收货人电话
	private String receiverPhone;
	// 终点邮编
	private String endPost;
	// 货物描述
	private String goodsRemark;
	// 货物体积
	private Double goodsVol;
	// 货物重量
	private Double goodsWeight;
	// 运输价格
	private Double transPrice;
	// 配送价格
	private Double disPrice;
	// 保价金额
	private Double insureAccount;
	// 保价费
	private Double insurePrice;
	// 保价比列
	private Double insurePrecent;
	// 所属交接单
	private Set transfers = new HashSet(0);
	// 状态
	private Set billStates = new HashSet(0);

	public Bill() {
	}

	public Bill(String id) {
		this.id = id;
	}

	public Bill(String id, String serial, Account account, Employee staff,
			Integer type, Date createTime, Provice startProvice,
			Provice endProvice, City startCity, City endCity, Town stratTown,
			Town endTown, String startAddress, String endAddress,
			String senderName, String senderPhone, String startPost,
			String receiverName, String receiverPhone, String endPost,
			String goodsRemark, Double goodsVol, Double goodsWeight,
			Double transPrice, Double disPrice, Double insureAccount,
			Double insurePrice, Double insurePrecent, Set transfers,
			Set billStates) {
		this.id = id;
		this.serial = serial;
		this.account = account;
		this.staff = staff;
		this.type = type;
		this.createTime = createTime;
		this.startProvice = startProvice;
		this.endProvice = endProvice;
		this.startCity = startCity;
		this.endCity = endCity;
		this.stratTown = stratTown;
		this.endTown = endTown;
		this.startAddress = startAddress;
		this.endAddress = endAddress;
		this.senderName = senderName;
		this.senderPhone = senderPhone;
		this.startPost = startPost;
		this.receiverName = receiverName;
		this.receiverPhone = receiverPhone;
		this.endPost = endPost;
		this.goodsRemark = goodsRemark;
		this.goodsVol = goodsVol;
		this.goodsWeight = goodsWeight;
		this.transPrice = transPrice;
		this.disPrice = disPrice;
		this.insureAccount = insureAccount;
		this.insurePrice = insurePrice;
		this.insurePrecent = insurePrecent;
		this.transfers = transfers;
		this.billStates = billStates;
	}

	public Account getAccount() {
		return account;
	}

	public Set getBillStates() {
		return billStates;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public Double getDisPrice() {
		return disPrice;
	}

	public String getEndAddress() {
		return endAddress;
	}

	public City getEndCity() {
		return endCity;
	}

	public String getEndPost() {
		return endPost;
	}

	public Provice getEndProvice() {
		return endProvice;
	}

	public Town getEndTown() {
		return endTown;
	}

	public String getGoodsRemark() {
		return goodsRemark;
	}

	public Double getGoodsVol() {
		return goodsVol;
	}

	public Double getGoodsWeight() {
		return goodsWeight;
	}

	public String getId() {
		return id;
	}

	public Double getInsureAccount() {
		return insureAccount;
	}

	public Double getInsurePrecent() {
		return insurePrecent;
	}

	public Double getInsurePrice() {
		return insurePrice;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public String getSenderName() {
		return senderName;
	}

	public String getSenderPhone() {
		return senderPhone;
	}

	public String getSerial() {
		return serial;
	}

	public Employee getStaff() {
		return staff;
	}

	public String getStartAddress() {
		return startAddress;
	}

	public City getStartCity() {
		return startCity;
	}

	public String getStartPost() {
		return startPost;
	}

	public Provice getStartProvice() {
		return startProvice;
	}

	public Town getStratTown() {
		return stratTown;
	}

	public Set getTransfers() {
		return transfers;
	}

	public Double getTransPrice() {
		return transPrice;
	}

	public Integer getType() {
		return type;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public void setBillStates(Set billStates) {
		this.billStates = billStates;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setDisPrice(Double disPrice) {
		this.disPrice = disPrice;
	}

	public void setEndAddress(String endAddress) {
		this.endAddress = endAddress;
	}

	public void setEndCity(City endCity) {
		this.endCity = endCity;
	}

	public void setEndPost(String endPost) {
		this.endPost = endPost;
	}

	public void setEndProvice(Provice endProvice) {
		this.endProvice = endProvice;
	}

	public void setEndTown(Town endTown) {
		this.endTown = endTown;
	}

	public void setGoodsRemark(String goodsRemark) {
		this.goodsRemark = goodsRemark;
	}

	public void setGoodsVol(Double goodsVol) {
		this.goodsVol = goodsVol;
	}

	public void setGoodsWeight(Double goodsWeight) {
		this.goodsWeight = goodsWeight;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setInsureAccount(Double insureAccount) {
		this.insureAccount = insureAccount;
	}

	public void setInsurePrecent(Double insurePrecent) {
		this.insurePrecent = insurePrecent;
	}

	public void setInsurePrice(Double insurePrice) {
		this.insurePrice = insurePrice;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}

	public void setSenderPhone(String senderPhone) {
		this.senderPhone = senderPhone;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public void setStaff(Employee staff) {
		this.staff = staff;
	}

	public void setStartAddress(String startAddress) {
		this.startAddress = startAddress;
	}

	public void setStartCity(City startCity) {
		this.startCity = startCity;
	}

	public void setStartPost(String startPost) {
		this.startPost = startPost;
	}

	public void setStartProvice(Provice startProvice) {
		this.startProvice = startProvice;
	}

	public void setStratTown(Town stratTown) {
		this.stratTown = stratTown;
	}

	public void setTransfers(Set transfers) {
		this.transfers = transfers;
	}

	public void setTransPrice(Double transPrice) {
		this.transPrice = transPrice;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}